<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <title>个人信息-{$lnshop_config['shop_info_store_title']}</title>
    <meta http-equiv="keywords" content="{$lnshop_config['shop_info_store_keyword']}" />
    <meta name="description" content="{$lnshop_config['shop_info_store_desc']}" />
    <link rel="stylesheet" href="__STATIC__/css/index.css" type="text/css">
    <script src="__STATIC__/js/jquery-1.10.2.min.js"></script>
    <script src="__STATIC__/js/slider.js"></script>
    <style>
        .width-45{
            width : 45%;
        }
        .width-10{
            width : 10%;
        }
        .cursor-pointer{
            cursor : pointer;
        }
        .cursor-none{
            cursor : default;
        }

    </style>
</head>

<body>
<!--------头部开始-------------->
<include file="Public/header" />
<!--------头部结束-------------->

<div class="layout ov-hi">
    <div class="breadcrumb-area">
        <foreach name="navigate_user" key="k" item="v">
            <if condition="$k neq '首页'"> > </if>
            <a href="{$v}">{$k}</a>
        </foreach>
    </div>
</div>

<div class="layout pa-to-10 fo-fa-ar">
    <!--菜单-->
    <include file="User/menu" />

    <div class="fr wi940">
        <div class="myhome-welcome pa-to-20">
            <div class="he50 wddd">
                <div class="fl ddd-h2">
                    <h2><span>我的分销</span></h2>
                </div>
            </div>
            <div class="myHuaban-info">
                <div class="myHuaban-point">
                    <dl>
                        <dt>销售额</dt>
                        <dd>
                            <span>￥{$sales_volume}</span>
                            <em>元</em>
                        </dd>
                    </dl>
                </div>
                <div class="myHuaban-point">
                    <dl>
                        <dt>我的奖励</dt>
                        <dd>
                            <span>￥{$reward}</span>
                            <em>元</em>
                        </dd>
                    </dl>
                </div>
                <div class="myHuaban-redeem">
                    <dl>
                        <dt>我的分销商</dt>
                        <dd>
                            <span>{$lower_count[1]+$lower_count[2]}</span>
                            <em>人</em>
                        </dd>
                    </dl>
                </div>
            </div>
        </div>
    </div>

    <div class="fr wi940">
        <!-- 我的分销商 -->
        <div class="Wallet">
            <div class="ss_million">
                <a class="cursor-none"><dl class="b"><dt>{$lnshop_config['distribut_name']}</dt><dd><span class="">{$lower_count[1]+$lower_count[2]}人</span></dd></dl></a>
        </div>
            </div>
        <div class="wddd-js ov-in">
            <div class="list-group-title">
                <table class="merge-tab" border="0" cellpadding="0" cellspacing="0">
                    <thead>
                    <tr>
                        <th class="wi230">级别</th>
                        <th class="wi230">人数</th>
                    </tr>
                    </thead>
                </table>
            </div>
            <div class="merge-list">
                <div class="ma-0--1">
                    <div class="o-pro">
                        <table border="0" cellpadding="0" cellspacing="0">
                            <tbody>
                            <tr class="cursor-pointer" onclick="distribut_list(1);">
                                <td class="wi230">{$lnshop_config['distribut_first_name']}</td>
                                <td class="wi230">{$lower_count[1]}人</td>
                            </tr>
                            <tr class="cursor-pointer" onclick="distribut_list(2);">
                                <td class="wi230">{$lnshop_config['distribut_second_name']}</td>
                                <td class="wi230">{$lower_count[2]}人</td>
                            </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
            <!-- 我的分销商 -->
            <!-- 我的推广 -->
            <div class="Wallet">
                <div class="ss_million">
                    <a class="cursor-none">
                        <dl class="b"><dt>我的推广</dt>
                        <dd>
                            <span class="">{$level_order[0]['c']+$level_order[1]['c']+$level_order[2]['c']+$level_order[3]['c']+$level_order[4]['c']}单
                          （￥{$level_order[0]['goods_price']+$level_order[1]['goods_price']+$level_order[2]['goods_price']+$level_order[3]['goods_price']}）</span>
                        </dd>
                        </dl>
                    </a>
                </div>
            </div>
            <div class="wddd-js ov-in">
                <div class="list-group-title">
                    <table class="merge-tab" border="0" cellpadding="0" cellspacing="0">
                        <thead>
                        <tr>
                            <th class="width-45">状态</th>
                            <th class="width-10">数量（单）</th>
                            <th class="width-45">金额（元）</th>
                        </tr>
                        </thead>
                    </table>
                </div>
                <div class="merge-list">
                    <div class="ma-0--1">
                        <div class="o-pro">
                            <table border="0" cellpadding="0" cellspacing="0">
                                <tbody>

                                <tr class="cursor-pointer" onclick="order_list('0,4');">
                                    <td class="width-45">下单未购买</td>
                                    <td class="width-10">{$level_order[0]['c']+$level_order[4]['c']}</td>
                                    <td class="width-45">{$level_order[0]['goods_price']+$level_order[4]['goods_price']}</td>
                                </tr>

                                <tr class="cursor-pointer" onclick="order_list('1,2,3');">
                                    <td class="width-45">下单已购买</td>
                                    <td class="width-10">{$level_order[1]['c']+$level_order[2]['c']+$level_order[3]['c']}</td>
                                    <td class="width-45">{$level_order[1]['goods_price']+$level_order[2]['goods_price']+$level_order[3]['goods_price']}</td>
                                </tr>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
                <!-- 我的推广 -->
                <!-- 我的财富 -->
                <div class="Wallet">
                    <div class="ss_million">
                        <a class="cursor-none">
                            <dl class="b"><dt>我的财富</dt>
                                <dd>
                            <span class="">￥{$level_order[0]['goods_price']+$level_order[1]['goods_price']+$level_order[2]['goods_price']+$level_order[3]['goods_price']}</span>
                                </dd>
                            </dl>
                        </a>
                    </div>
                </div>
                <div class="wddd-js ov-in">
                    <div class="list-group-title">
                        <table class="merge-tab" border="0" cellpadding="0" cellspacing="0">
                            <thead>
                            <tr>
                                <th class="wi230">财富状态</th>
                                <th class="wi230">金额（元）</th>
                            </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="merge-list">
                        <div class="ma-0--1">
                            <div class="o-pro">
                                <table border="0" cellpadding="0" cellspacing="0">
                                    <tbody>
                                    <tr class="cursor-pointer" onclick="order_list('0');">
                                        <td class="wi230">未付款订单财富</td>
                                        <td class="wi230">￥{$level_order[0]['goods_price']}</td>
                                    </tr>
                                    <tr class="cursor-pointer" onclick="order_list('1');">
                                        <td class="wi230">已付款订单财富</td>
                                        <td class="wi230">￥{$level_order[1]['goods_price']}</td>
                                    </tr>
                                    <tr class="cursor-pointer" onclick="order_list('2');">
                                        <td class="wi230">已收货订单财富</td>
                                        <td class="wi230">￥{$level_order[2]['goods_price']}</td>
                                    </tr>
                                    <tr class="cursor-pointer" onclick="order_list('3');">
                                        <td class="wi230">已分成订单财富</td>
                                        <td class="wi230">￥{$level_order[3]['goods_price']}</td>
                                    </tr>
                                    <tr>
                                        <td class="wi230">已提现财富</td>
                                        <td class="wi230">￥{$withdrawals_money|default="0"}</td>
                                    </tr>
                                    <tr>
                                        <td class="wi230">可提现财富</td>
                                        <td class="wi230">￥{$user['user_money']|default="0"}</td>
                                    </tr>
                                    </tbody>
                                </table>
                            </div>
                        </div>
                    </div>
                </div>
                <!-- 我的财富 -->
                </div>
            </div>
        </div>
</div>

<include file="Public/footer"/>
<include file="Public/footer_nav"/>
</body>
	<script type="text/javascript">
	
    	$(document).ready(function() { 

        });

        //跳转订单列表
        function order_list(status){
            window.location.href = "{:U('Distribut/order_list')}?status=" + status;
        }

        //跳转分销商列表
        function distribut_list(status){
            window.location.href = "{:U('Distribut/lower_list')}?level=" + status;
        }
    </script>
</html>